package com.dolphin.common.component.var;

import org.apache.commons.lang3.StringUtils;

import java.util.regex.Matcher;
import java.util.regex.Pattern;

/**
 * @author shida
 */
public class VarUtils {

    public static final Pattern BID_PATTERN = Pattern.compile("\\b[btfscrGud][0-9]{8}\\b");

    public static boolean isBid(String bid){
        if(StringUtils.isEmpty(bid)){
            return false;
        }

        Matcher matcher = BID_PATTERN.matcher(bid);
        if(matcher.find()){
            return true;
        }

        return false;
    }
}
